2020-2021 Sunseeker Telemetry and Lighting System
wdt_a_ex2_intervalACLK.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void WDT_A_ISR (void)
 

Function Documentation

◆ main()

void main ( void  )

WDT - Toggle P1.0, Interval Overflow ISR, 32kHz ACLK

Toggle P1.0 using software timed by WDT ISR. Toggle rate is exactly 250ms based on 32kHz ACLK WDT clock source. In this example the WDT is configured to divide 32768 watch-crystal(2^15) by 2^13 with an ISR triggered @ 4Hz = [WDT CLK source/32768]. ACLK = REFO , MCLK = SMCLK = default DCO ~1.045MHz

Tested On: MSP430F5529,MSP430FR5739

/ |
RST
P1.0 -->LED

| |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • WDT peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • WDT_A_VECTOR

Definition at line 63 of file wdt_a_ex2_intervalACLK.c.

References __no_operation().

◆ WDT_A_ISR()

void WDT_A_ISR ( void  )

Definition at line 96 of file wdt_a_ex2_intervalACLK.c.